package com.trdcore.zyzkt.config;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class WxPayAccountConfig implements InitializingBean {

    @Value("${wechat.mpAppId}")
    private String appid;

    @Value("${wechat.mpAppSecret}")
    private String appsecret;

    @Value("${wechat.mchId}")
    private String mchId;
    public static String ACCESS_KEY_ID;
    public static String ACCESS_KEY_SECRET;

    public static String ACCESS_MCHID;
    @Override
    public void afterPropertiesSet() throws Exception {
        ACCESS_KEY_ID = appid;
        ACCESS_KEY_SECRET = appsecret;
        ACCESS_MCHID=mchId;
    }
}